package com.zmm.weblog.web.service.impl;

import com.zmm.weblog.admin.convert.BlogSettingsConvert;
import com.zmm.weblog.admin.model.vo.blog.FindBlogSettingsRspVO;
import com.zmm.weblog.common.domain.dos.BlogSettingsDo;
import com.zmm.weblog.common.domain.mapper.BlogSettingsMapper;
import com.zmm.weblog.common.utils.Response;
import com.zmm.weblog.web.service.BlogSettingsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: 福禄寿
 * @Date: 2024/7/8 下午4:55
 * @Des: weblog-springboot
 **/
@Service
public class BlogSettingsServiceImpl implements BlogSettingsService {


    @Autowired
    private BlogSettingsMapper blogSettingsMapper;

    @Override
    public Response findBlogSettingsList() {
        BlogSettingsDo blogSettingsDO = blogSettingsMapper.selectById(1l);
        FindBlogSettingsRspVO vo = BlogSettingsConvert.INSTANCE.convertDO2VO(blogSettingsDO);

        return Response.success(vo);
    }
}
